import { Mark, Color } from "./enums";
import { Jokers } from "./types";


//创建扑克牌
export function createJokers():Jokers {
    // 创建数组
      const jokers:Jokers = [];
      //获取到枚举对象的值数组;
      const marks = Object.values(Mark) 
      const colors = Object.values(Color)
      for (const m of marks) {
        for (const c of colors) {
            jokers.push({
                color:c,
                mark:m
            })
        }
      }
      return jokers;
    }